﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace DotNetUI.Controls
{
    public class DotNetDigitalControl:ContentControl
    {
        static DotNetDigitalControl()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DotNetDigitalControl), new FrameworkPropertyMetadata(typeof(DotNetDigitalControl)));
        }
        /// <summary>
        /// 显示的文本
        /// </summary>
        public static readonly DependencyProperty TextProperty = DependencyProperty.Register(nameof(Text),typeof(string),typeof(DotNetDigitalControl));
        /// <summary>
        /// 显示的文本
        /// </summary>
        public string Text { get=>this.GetValue<string>(TextProperty); set=>SetValue(TextProperty,value); }
        /// <summary>
        /// 圆角值
        /// </summary>
        public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register(nameof(CornerRadius), typeof(CornerRadius), typeof(DotNetDigitalControl));
        /// <summary>
        /// 圆角值
        /// </summary>
        public CornerRadius CornerRadius { get => this.GetValue<CornerRadius>(CornerRadiusProperty); set => SetValue(CornerRadiusProperty, value); }

        /// <summary>
        /// 高亮笔刷
        /// </summary>
        public Brush HightlightBrush { get => this.GetValue<Brush>(HightlightBrushProperty); set => SetValue(HightlightBrushProperty, value); }
        /// <summary>
        /// 高亮笔刷属性
        /// </summary>

        public static readonly DependencyProperty HightlightBrushProperty = DependencyProperty.Register(nameof(HightlightBrush), typeof(Brush), typeof(DotNetDigitalControl));
        /// <summary>
        /// 边框粗细
        /// </summary>
        public static readonly DependencyProperty SegmentThicknessProperty = DependencyProperty.Register(nameof(SegmentThickness), typeof(double), typeof(DotNetDigitalControl));
        /// <summary>
        /// 片段粗细
        /// </summary>
        public double SegmentThickness { get => this.GetValue<double>(SegmentThicknessProperty); set => SetValue(SegmentThicknessProperty, value); }

        /// <summary>
        /// 片段边框颜色
        /// </summary>
        public static readonly DependencyProperty SegmentBrushProperty = DependencyProperty.Register(nameof(SegmentBrush), typeof(Brush), typeof(DotNetDigitalControl));
        /// <summary>
        /// 片段边框颜色
        /// </summary>
        public Brush SegmentBrush { get => this.GetValue<Brush>(SegmentBrushProperty); set => SetValue(SegmentBrushProperty, value); }
    }
}
